package com.rui.study.algorithm.L_深入理解JVM_语法糖;

import java.util.Arrays;
import java.util.List;

/**
 * @program: study
 * @description:
 * @author: Yaowr
 * @create: 2019-03-04 08:54
 **/
public class Demo1 {
    public static void main(String[] args) {
        /**
         * 包含：泛型、自动装箱、自定拆箱、便利循环和变长参数5种语法糖
         */
        List<Integer> list = Arrays.asList(1,3,4,5);
        for (int num : list) {
            System.out.println(num);
        }
    }
}
